<!DOCTYPE html>
<html>
<head>
    <title>代理商商户</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:agentshoppos:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:agentshoppos:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:agentshoppos:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">商户编码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posSn" placeholder="商户编码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商户名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posName" placeholder="商户名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商户管理员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posAdmin" placeholder="商户管理员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属业务员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posBus" placeholder="所属业务员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">业务员佣金百分比</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posBusRatio" placeholder="业务员佣金百分比"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商铺佣金百分比</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posRatio" placeholder="商铺佣金百分比"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商铺LOGO</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posLogo" placeholder="商铺LOGO"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商铺图片</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.posImg" placeholder="商铺图片"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">省</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.province" placeholder="省"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">市</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.city" placeholder="市"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">区</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.district" placeholder="区"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">详细地址</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.address" placeholder="详细地址"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">经度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.warp" placeholder="经度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">纬度</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.weft" placeholder="纬度"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">计费方式</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.chargingType" placeholder="计费方式"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">计费单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.chargingCompany" placeholder="计费单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">计费标准</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.chargingStandard" placeholder="计费标准"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">免费时长</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.freeTime" placeholder="免费时长"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">每日最高消费</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.consume" placeholder="每日最高消费"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">密码线</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.cipherLine" placeholder="密码线"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">店铺电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.shopPhone" placeholder="店铺电话"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">营业时间开始</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.startTime" placeholder="营业时间开始"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">营业时间结束</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.endTime" placeholder="营业时间结束"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">人均消费</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.money" placeholder="人均消费"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">所属系统</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.sysSystem" placeholder="所属系统"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">排序</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.sort" placeholder="排序"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">状态</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.status" placeholder="状态"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.remarks" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.createdTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.createdUserId" placeholder="创建人员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">修改时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.modifyTime" placeholder="修改时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">修改人员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.modifyUserId" placeholder="修改人员"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">版本号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="agentShopPos.version" placeholder="版本号"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/agentshoppos.js?_${.now?long}"></script>
</body>
</html>